package com.huey.utils.execl;

import cn.afterturn.easypoi.handler.inter.IExcelI18nHandler;
import com.huey.utils.message.MessageUtils;
import org.apache.commons.lang3.StringUtils;

/**
 * @Author: xubo
 * @Date: 2020/10/30 14:44
 */
public class IExcelI18nHandlerImpl implements IExcelI18nHandler {

    @Override
    public String getLocaleName(String name) {
        if (StringUtils.isBlank(name)) {
            return name;
        }
        return MessageUtils.getMessageWithLocale(name);
    }
}
